package com.example.unique.ui.status

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
data class JobStatus(
    val id: Int,
    val club: String,
    val startTime: String,
    val endTime: String,
    val target: String,
    val radius: Double,
    val jobStatus: Int,
    val taskName: String,
    val completorSno:String
)
class StatusViewModel : ViewModel() {
    private val _statusData=MutableLiveData<List<JobStatus>>()
    val statusData:LiveData<List<JobStatus>> = _statusData


}
/*
*   @SuppressLint("Range")
    fun getUserByClub(club:String){
        val cursor: Cursor = databaseHelper.getUserByClub(club)
        val members = mutableListOf<Member>()

        if (cursor.moveToFirst()) {
            do{
                val member = Member(
                    id = cursor.getInt(cursor.getColumnIndex("id")),
                    academy = cursor.getString(cursor.getColumnIndex("academy")),
                    name = cursor.getString(cursor.getColumnIndex("name")),
                    sno = cursor.getString(cursor.getColumnIndex("sno")),
                )
                members.add(member)
            }while (cursor.moveToNext())
        }
        cursor.close()
        _membersData.value=members
    }
* */
